/* NOTICE
 
    Jim - the Java Image Manager, copyright (c) 2005 - 2007 Grant Gardner 
 
    Jim is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Jim is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
    In addition, as a special exception, you are permitted to link this code
    with the 3rd party libraries required to compile this file and to
    distribute a linked combination including them. You must obey the
    GNU General Public License in all respects for all of the code except for
    those 3rd party libraries that are licenced under terms incompatible with the
    GNU General Public License.  
 
 
 NOTICE */

/*
 * Created by dnoakes on 27-Nov-2002 10:10:47 using IntelliJ IDEA.
 */

package au.com.lastweekend.jim.io.exif.makernote.fujifilm;

import java.util.HashMap;
import java.util.Map;

import au.com.lastweekend.jim.io.metadata.Directory;

/**
 * 
 * 
 * 
 * @version $Id: FujiFilmMakernoteDirectory.java,v 1.3 2006/02/20 12:21:11 ggardner Exp $
 * @author <a href="mailto:grant@lastweekend.com.au"> <Grant Gardner> </a>
 */
public class FujiFilmMakernoteDirectory extends Directory {

    public static final int TAG_FUJIFILM_MAKERNOTE_VERSION = 0x0000;
    public static final int TAG_FUJIFILM_QUALITY = 0x1000;
    public static final int TAG_FUJIFILM_SHARPNESS = 0x1001;
    public static final int TAG_FUJIFILM_WHITE_BALANCE = 0x1002;
    public static final int TAG_FUJIFILM_COLOR = 0x1003;
    public static final int TAG_FUJIFILM_TONE = 0x1004;
    public static final int TAG_FUJIFILM_FLASH_MODE = 0x1010;
    public static final int TAG_FUJIFILM_FLASH_STRENGTH = 0x1011;
    public static final int TAG_FUJIFILM_MACRO = 0x1020;
    public static final int TAG_FUJIFILM_FOCUS_MODE = 0x1021;
    public static final int TAG_FUJIFILM_SLOW_SYNCHRO = 0x1030;
    public static final int TAG_FUJIFILM_PICTURE_MODE = 0x1031;
    public static final int TAG_FUJIFILM_UNKNOWN_1 = 0x1032;
    public static final int TAG_FUJIFILM_CONTINUOUS_TAKING_OR_AUTO_BRACKETTING = 0x1100;
    public static final int TAG_FUJIFILM_UNKNOWN_2 = 0x1200;
    public static final int TAG_FUJIFILM_BLUR_WARNING = 0x1300;
    public static final int TAG_FUJIFILM_FOCUS_WARNING = 0x1301;
    public static final int TAG_FUJIFILM_AE_WARNING = 0x1302;

    protected static final HashMap<Integer, String> TAG_NAME_MAP = new HashMap<Integer, String>();

    static {
        TAG_NAME_MAP.put(TAG_FUJIFILM_AE_WARNING, "AE Warning");
        TAG_NAME_MAP.put(TAG_FUJIFILM_BLUR_WARNING, "Blur Warning");
        TAG_NAME_MAP.put(TAG_FUJIFILM_COLOR, "Color");
        TAG_NAME_MAP.put(TAG_FUJIFILM_CONTINUOUS_TAKING_OR_AUTO_BRACKETTING, "Continuous Taking Or Auto Bracketting");
        TAG_NAME_MAP.put(TAG_FUJIFILM_FLASH_MODE, "Flash Mode");
        TAG_NAME_MAP.put(TAG_FUJIFILM_FLASH_STRENGTH, "Flash Strength");
        TAG_NAME_MAP.put(TAG_FUJIFILM_FOCUS_MODE, "Focus Mode");
        TAG_NAME_MAP.put(TAG_FUJIFILM_FOCUS_WARNING, "Focus Warning");
        TAG_NAME_MAP.put(TAG_FUJIFILM_MACRO, "Macro");
        TAG_NAME_MAP.put(TAG_FUJIFILM_MAKERNOTE_VERSION, "Makernote Version");
        TAG_NAME_MAP.put(TAG_FUJIFILM_PICTURE_MODE, "Picture Mode");
        TAG_NAME_MAP.put(TAG_FUJIFILM_QUALITY, "Quality");
        TAG_NAME_MAP.put(TAG_FUJIFILM_SHARPNESS, "Sharpness");
        TAG_NAME_MAP.put(TAG_FUJIFILM_SLOW_SYNCHRO, "Slow Synchro");
        TAG_NAME_MAP.put(TAG_FUJIFILM_TONE, "Tone");
        TAG_NAME_MAP.put(TAG_FUJIFILM_UNKNOWN_1, "Makernote Unknown 1");
        TAG_NAME_MAP.put(TAG_FUJIFILM_UNKNOWN_2, "Makernote Unknown 2");
        TAG_NAME_MAP.put(TAG_FUJIFILM_WHITE_BALANCE, "White Balance");
    }

    public FujiFilmMakernoteDirectory(Directory parent) {

        super(parent);
        this.setDescriptor(new FujifilmMakernoteDescriptor(this));
    }

    @Override
    public String getName() {

        return "FujiFilm Makernote";
    }

    @Override
    protected Map<Integer, String> getTagNameMap() {

        return TAG_NAME_MAP;
    }
}